package com.onlinevideo.dao;


import com.onlinevideo.entity.Video;

import java.util.List;
import java.util.Map;

public interface VideoDao extends PageBase<Video> {
    int insert(Video video);

    int delete(Long id);

    int update(Video video);

    Video queryById(Long id);

    Video queryByIdS0(Long id);

    Video queryByIdS1(Long id);

    List<Video> queryAll();

    List<Video> queryAllS1();

    List<Video> queryAllS0();

    List<Video> queryByName(String name);

    List<Video> queryByConditions(Video video);

    Map<String, Object> queryByPageS1(String category, String name, Integer pageNo);
}
